{* $Id$ *}
{include_core file="admin/lib/header.html" title="newhit报名列表"}
  <style>
  .table-div{
    padding:30px;
    padding-top:15px;
    padding-bottom:0px;
  }
  .table-div table td{
    padding:10px;
    border: 1px solid rgb(233,233,233);
  }
  .table-div table th{
    padding:3px;
    border: 1px solid rgb(233,233,233);
    text-align: center;
    font-weight: bolder;
    background: rgb(246,246,246);
  }
  .table-div table tr th.goods-title{
    min-width: 200px;
    max-width:300px;
  }
  .table-div table tr th.goods-cover{
    width:70px;
    padding:3px;
  }
  .table-div table tr td.refund-edit span{
    float: left;
    margin-right:10px;
  }
</style>
  <div class="page-header border-bottom clearfix">
    <h2 class="left">newhit眼镜报名</h2>
    <a style="margin-top:5px; display:block; float:right;" href="{AnUrl("events/admin/newhit_apply?status=$status&is_excel=1")}" class="btn btn-xs btn-primary">导出EXCEL</a>
  </div>

  <div class="search-form js_advancedForm">
    <form action="{AnUrl('events/admin/newhit_apply')}" method="get" class="js_focusSearchForm">
      <input type="hidden" name="status" value="{$status}">
      <p>
        <label for="" class="search-f-label">真实姓名：</label>
        <input type="text" class="search-f-ipt1" name="search_filter[realname]" value="{$search_filter.realname}">
      </p>
      <p>
        <label for="" class="search-f-label">手机号</label>
        <input type="text" class="search-f-ipt1" name="search_filter[mobile]" value="{$search_filter.mobile}">
      </p>
      <p>
        <label for="" class="search-f-label">邮箱</label>
        <input type="text" class="search-f-ipt1" name="search_filter[email]" value="{$search_filter.email}">
      </p>
      <p>
        <label for="" class="search-f-label"></label>
        <button type="submit" class="btn btn-success btn-xs js_searchBtn">搜索</button>
      </p>
    </form>
  </div>
  
  <!--start:列表-->
  <table class="list-table">
    <caption>按状态：
      <a href='{AnUrl("events/admin/newhit_apply?status=1")}' {if $status == 1} class="label label-primary" {else} class="label label-default" {/if}>正常</a>
      <a href='{AnUrl("events/admin/newhit_apply?status=0")}' {if $status == 0} class="label label-primary" {else} class="label label-default" {/if}>已禁用</a>
    </caption>
    <thead><tr>
      {if $status == 1}
      <th style="width:20px;"><input type="checkbox" class="selectAll"></th>
      {/if}
      <th style="width:60px;">名字</th>
      <th style="width:60px;">手机号</th>
      <th style="width:100px;">邮箱</th>
      <th style="width:100px;">报名时间</th>
      <th style="width:60px;">操作</th>
    </tr></thead>
    <tbody>
      {foreach $newhit_list as $k=>$v}
        <tr id="dataList{$v.id}" {if $k%2 == 1} class="bg-gray"{/if} data-id="{$v.id}">
          {if $status == 1}
            <td><input type="checkbox" class="listSelect"></td>
          {/if}
          <td>{$v.realname}</td>
          <td>{$v.mobile}</td>
          <td>{$v.email}</td>
          <td>{$v.add_time}</td>
          <td>
            {if $status == 1}
              <a href="{AnUrl("events/admin/newhit_apply/delete?id={$v.id}")}" class="btn btn-danger btn-xs deleteOne"><i class="icon-trash icon-white"></i>禁用</a>
            {elseif $status == 0}
              <a href="{AnUrl("events/admin/newhit_apply/change_status?status=1")}" class="btn btn-success btn-xs changeStatus"><i class="icon-trash icon-white"></i>恢复</a>
              <a href="{AnUrl("events/admin/newhit_apply/delete?id={$v.id}")}" class="btn btn-danger btn-xs deleteOne"><i class="icon-trash icon-white"></i>删除</a>
            {/if}
          </td>
        </tr>
      {foreachelse}
          <tr><td class="txtleft" colspan="8">暂无数据</td></tr>
      {/foreach}
    </tbody>
    {if $status == 1}
    <tfoot><tr><td><input type="checkbox" class="selectAll"></td><td colspan="7"><a href="{AnUrl("events/admin/newhit_apply/delete")}" class="btn btn-danger btn-xs deleteAll">批量禁用</a></td></tr></tfoot>
    {/if}
  </table>
  {include_core file="admin/lib/pager.html"}
<!--end:列表-->
{load_js file='zclip/jquery.zclip.min.js'}
{load_js file='zclip/ZeroClipboard.js'}
{include_core file="admin/lib/footer.html"}